<# # It is recommended to test the script on a local machine for its purpose and effects. # ManageEngine Endpoint Central will not be responsible for any # damage/loss to the data/setup based on the behavior of the script. # Description: Script is designed To fetch the powershell status # Configuration Type - COMPUTER #> try { # Attempt to access the $PSVersionTable property, which will succeed if PowerShell is installed $PSVersionTable Write-Host "PowerShell is installed." } catch { # If an error occurs (i.e., PowerShell is not installed), display this message Write-Host "PowerShell is not installed." }